System and method of managing capacity of search index partitions

ABSTRACT

A search system can maintain a search index of metadata and text for objects in a repository, repositories or distributed across a network. The search index can be divided into partitions with a partition assigned a first capacity utilization threshold and a second capacity utilization threshold. If the capacity utilization of the partition is below the first threshold, the system can add, update and delete information in the partition. If the capacity utilization of the partition is above the first threshold, the system can update and delete information in the partition, but cannot add information for new objects to the partition. If the capacity utilization of the partition is above the second threshold, the system can enter a rebalancing mode in which it seeks to rebalance capacity utilization between partitions. The behavior of the system can change depending upon the size of a partition relative to its configurable thresholds.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This is a conversion of and claims a benefit of priority from U.S.Provisional Application No. 61/528,967, filed Aug. 30, 2011, entitled“SYSTEM AND METHOD OF MANAGING CAPACITY OF SEARCH INDEX PARTITIONS,”which is incorporated by reference as if set forth herein in itsentirety.

TECHNICAL FIELD

This disclosure relates generally to the field of computerized searchsystems, and more particularly to systems, methods and products formanaging capacity of search index partitions in a computerized searchsystem.

BACKGROUND OF THE RELATED ART

Document management systems often employ a search engine to allow forfast retrieval of information. A search engine can search the metadataand text of documents in a search index to determine which documentsmatch search criteria without having to parse the document itself.

As the volume of information committed to a search system increases, aneed arises to have multiple search systems sharing responsibility formanaging the search index. The index needs to be split into smallercomponents, called partitions. Each partition has a capacity limit,based on resources such as available memory, disk space or othercapacity constraints.

As partitions are filled with new data from indexing operations, theyapproach a point at which they are eventually deemed to be full. In atraditional system, the administrators need to monitor the sizes of thepartitions, and make configuration changes as the partitions increase ordecrease in size. This creates a system management burden, and can evenresult in a partition becoming inoperable if configuration changes arenot made in a timely manner.

One solution is for the administrator of the system to check theconditions of the partitions on a regular basis. This introduces theprospect of user error, and is problematic if the administrators are notavailable.

Another solution is for external automated applications to regularlycheck the status of the partitions, and notify the administrators thataction should be taken based upon configuration rules. The disadvantageshere are the need for external programs to be created to monitor thepartitions, and this still leaves room for errors if the administratorcannot react to the notifications in a timely manner.

If the search system provides suitable integration points, it may alsobe possible for an external system to monitor the status of partitionsand make configuration changes automatically. This places a burden onexternal technology to anticipate the internal behavior of searchpartitions.

None of these solutions, however, provide for an understanding when apartition is too full and moving appropriate data from a full partitionto one with available space.

There are implementations that exist today which are capable of movingdata to other partitions. However, these solutions move datainefficiently, have only one mode of operation, and only move data onceextreme limits have been exceeded. Consequently, there is always roomfor innovations and improvements.

SUMMARY OF THE DISCLOSURE

This disclosure relates generally to the field of computerized searchsystems. More particularly, embodiments disclosed herein provide for asystem, method and computer program product that can manage search indexpartitions in a computerized search system in an automated, efficient,and intelligent manner.

A computerized search system may comprise a search engine. This searchengine may maintain a search index for objects (e.g., documents or otherobjects in a repository). This search index may be partitioned, eachhaving a set capacity. In one embodiment, when a capacity utilization ofa partition in the search index is under a first threshold, the searchengine may allow objects to be added to the partition and also allowexisting objects in the partition to be updated or deleted. An updateoperation may, for example, be to replace or modify the object.

When the capacity utilization of the partition meets or exceeds thefirst threshold, the search engine may change from an Add mode to anUpdate mode. In the Update mode, the search engine may refuse indexingrequests to add objects to the partition, but still allow existingobjects in the partition to be updated or deleted.

When the capacity utilization of the partition meets or exceeds a secondthreshold, the search engine may change from the Update mode to aRebalancing mode. In the Rebalancing mode, the search engine may refuseindexing requests to add objects to the partition, allow existingobjects in the partition to be deleted, and move objects, for whichindexing requests have been received to update them, to otherpartition(s) that are not yet full. To do so, a partition manager maytransform an object that is subject to an update into an indexingrequest. The indexing request thus generated is then sent to anotherpartition in the search index for processing. Optionally, the partitionmanager may automatically and proactively move existing objects out ofthe partition that is in the Rebalancing mode without waiting forincoming indexing requests to modify or delete existing objects. Thepartition manager may be configured to perform such a moving operationuntil the capacity utilization of the partition drops below a thirdthreshold and back into the Update mode. These thresholds areconfigurable and may differ from partition to partition.

One embodiment provides a computer program product that comprises anon-transitory computer readable medium having a set of computerinstructions stored on it. The instructions are executable by a computerprocessor to perform a method essentially as described above.

Another embodiment provides a computerized search system comprising atleast one non-transitory computer readable medium storing instructionstranslatable by at least one processor to perform a method essentiallyas described above.

Embodiments disclosed herein can provide many advantages. For example,by having a range of capacity utilization reserved for updates to apartition, an authorized user can estimate the space that will be neededfor updates and therefore eliminate or reduce the amount of rebalancingthat will be required when the partition is full. Further, having anUpdate mode with a Rebalancing mode also provide advantages. With thesemodes, the rebalancing process can be optimized and the partitionmanager can make better decisions about allocating indexing requestsamong partitions.

These, and other, aspects of the invention will be better appreciatedand understood when considered in conjunction with the followingdescription and the accompanying drawings. The following description,while indicating various embodiments of the invention and numerousspecific details thereof, is given by way of illustration and not oflimitation. Many substitutions, modifications, additions orrearrangements may be made within the scope of the invention, and theinvention includes all such substitutions, modifications, additions orrearrangements.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawings accompanying and forming part of this specification areincluded to depict certain aspects of the invention. A clearerimpression of the invention, and of the components and operation ofsystems provided with the invention, will become more readily apparentby referring to the exemplary, and therefore non-limiting, embodimentsillustrated in the drawings, wherein identical reference numeralsdesignate the same components. Note that the features illustrated in thedrawings are not necessarily drawn to scale.

FIG. 1 depicts one embodiment of a computing environment in which oneembodiment of a search system can be implemented.

FIG. 2 depicts a functional block diagram illustrating one embodiment ofan object analyzer.

FIG. 3 depicts a functional block diagram illustrating one embodiment ofa search engine.

FIG. 4 depicts a diagrammatic representation of one embodiment ofregions or fields for a portion of an index.

FIG. 5 depicts a functional block diagram illustrating one embodiment ofan indexing engine.

FIG. 6 depicts a diagrammatic representation of one embodiment of anindex with multiple partitions connected to and being managed by apartition manager.

FIG. 7 depicts a diagrammatic representation of one embodiment of apartition to which multiple thresholds are assigned.

FIG. 8 depicts a flow diagram illustrating one embodiment of a methodfor managing an index partition.

DETAILED DESCRIPTION

The disclosure and various features and advantageous details thereof areexplained more fully with reference to the exemplary, and thereforenon-limiting, embodiments illustrated in the accompanying drawings anddetailed in the following description. Descriptions of known startingmaterials and processes may be omitted so as not to unnecessarilyobscure the disclosure in detail. It should be understood, however, thatthe detailed description and the specific examples, while indicating thepreferred embodiments, are given by way of illustration only and not byway of limitation. Various substitutions, modifications, additionsand/or rearrangements within the spirit and/or scope of the underlyinginventive concept will become apparent to those skilled in the art fromthis disclosure.

Document management systems often employ a search engine to allow forfast retrieval of information. A search engine can search the metadataand text of documents in a search index to determine which documentsmatch search criteria without having to parse the document itself.Embodiments of a search engine described herein provide systems andmethods for managing partitions to prevent partitions from becomingunmanageable. It may be helpful to first discuss an example searchsystem.

FIG. 1 depicts a block diagram illustrating one embodiment of acomputing environment 100 with object search system 101. Computingenvironment 100 includes an object repository 105 storing objects 107 ofinterest (documents, images, emails or other objects that may besearched). Object repository 105 may comprise a file server or databasesystem or other storage mechanism remotely or locally accessible bysearch system 101.

In the embodiment of FIG. 1, search system 101 comprises a server havinga central processing unit 112 connected to a memory 114 and storage unit118 via a bus. Central processing unit 112 may represent a singleprocessor, multiple processors, a processor(s) with multiple processingcores and the like. Storage unit 118 may include a non-transitorystorage medium such as hard-disk drives, flash memory devices, opticalmedia and the like. Search system 101 may be connected to a datacommunications network (not shown).

Storage unit 118 stores computer executable instructions 119 and index124. Computer executable instructions 119 can represent multipleprograms and operating system code. In one embodiment, instructions 119are executable to provide an object analyzer 120 and search engine 122.Object analyzer 120 and search engine 122 may be portions of the sameprogram or may be separate programs. According to one embodiment, forexample, object analyzer 120 is a component of a document managementsystem while search engine 122 is a separate program that interfaceswith the document management system. Furthermore, object analyzer 120and search engine 122 can be implemented on different computing systemsand can, themselves, be distributed.

Index 124 includes metadata used to identify objects in response to asearch query and may also include text used to identify objects. Index124 can include a single index containing metadata and text, separatemetadata and text indices or other arrangements of information. Whileshown as a single index, index 124 may include multiple indices.Further, as will be described further below, index 124 may bepartitioned, with different objects being represented in each partition.

Client computer system 130 may include components similar to those ofthe server of search system 101, such as CPU 138, memory 136, andstorage 140. Additionally, client computer system 130 may includeexecutable instructions 132 to provide a user interface 134 that allowsa user to enter a search query. The user interface may be providedthrough a web browser, file system interface or other program.

The search system 101 of FIG. 1 is merely an example of a computingsystem and embodiments of a search system that may be implemented usingother computing systems (e.g., desktop computers, laptops, mobilecomputing devices or other computing devices with adequate processingand memory) including multiple computers acting together to provide asearch system (e.g., a cluster of servers or other computing devicesconnected by a network acting together to provide the search system).Similarly, client computer 130 may include any suitable desktopcomputer, laptop, mobile device, server or other computing system.

In operation, object analyzer 120 analyzes objects in object repository105 to determine information to be indexed in index 124. Object analyzer120 can send indexing instructions to search engine 122 to direct searchengine 122 to add/modify/or delete metadata or text in index 124, asdiscussed below. When a search query is received, search engine 122 cansearch the information in index 124 to identify objects responsive tothe search query and return a list or other representation of thoseobjects to client computer 130.

FIG. 2 depicts a diagrammatic representation of one embodiment of anobject analyzer 120 for analyzing an object 107. Object analyzer 120 cancomprise various modules to process an object 107. Reading source datamodule 154 can open the object 107. Format identification module 156examines the object to determine what type of file or data the object107 comprises. Archive expansion module 158 unzips files or otherwisedecompresses files if the object 107 is a compressed file. Decryptionmodule 160 decrypts all or part of the data in the object 107. Textextraction module 162 applies rules to text in the object 107 to extracttext for index 124. Language detection module 164 examines the text todetermine the language in which the text is written. Classificationmodule 166 applies rules based upon text and metadata to classifycontent. Encoding module 168 can convert text to a supported encoding.Randomness detection module 170 can analyze data to be indexed to rejectrandom information.

Object analyzer 120 may include modules that can derive metadata forobject 107. For example, a document management system may provide alimited amount of metadata with the object 107. Object analyzer 120 canderive other metadata from the metadata provided, text or otherproperties of the object 107. As a specific example, a filter or pieceor code that extracts the text from a PowerPoint presentation might alsocreate metadata about the presentation. In this example, the metadatawhich is not provided by the document management system and which isderived by object analyzer 120 may include the number of slides in thepresentation, the title of the file, the name of the presentationauthor, or the size of paper the presentation was designed to print on.More complex examples of derived metadata might include statisticalanalysis to generate a list of keyword or key concepts in the document;determining the subject person or company of the text; sentimentanalysis—is the tone of the text positive or negative; or languageidentification—in what language is the text written. Further examples ofmetadata that may either be provided by the document management system(or other application) or derived by the analyzer may be the date theobject was created, the size of the object in bytes, the name of theobject, a description of the object or the like.

The embodiment of FIG. 2 is provided by way of example. Object analyzer120 may include any number of other modules to analyze an object andextract text 174 and metadata 172 to be indexed. Object analyzer 120 maybe a portion of a larger program, such as a document management program,may be a separate program or may be implemented according any suitableprogramming architecture. In one embodiment, the process of determiningmetadata 172 and text 174 to be indexed may be carried out by any numberof different programs on a computer system or distributed acrosscomputer systems.

Metadata 172 and text 174 thus processed by object analyzer 120 may beprovided to a search engine. An example search engine will now bedescribed with reference to FIG. 3.

FIG. 3 depicts a diagrammatic representation of logical blocks for oneembodiment of a search engine 122. Search engine 122 may provide anindexing interface 200 that receives indexing requests (e.g., fromobject analyzer 120) or other source. A distributor module 210 maydistribute the indexing requests to indexing engine 220 that act on anindexing request to update index 124. Search engine 122 may also includea search interface 230 to receive queries (e.g., from a documentmanagement system or other source). Search interface 230 may sendqueries to search modules 240. Federator 245 gathers the results fromall search modules together, and generates a response to the queryreceived through search interface 230. Search modules 240 areresponsible for performing searches on an index partition, andperforming tasks such as computing relevance score, sorting results, andretrieving metadata regions to return in a query.

Search interface 230 may be configured to receive a search query from auser, and search index 124 for objects that meet the criteria set forthin the search query. Query language may also be configured to permitsorting results of a search. Various rules may be used to determine thesort order. In this example, a user constructed the search query. Itshould be noted, however, that the user could be any system that issuesqueries to the search system, and may include other computer programssearching on behalf of other users, creating reports or runningautomatic processes. Additionally, as described above, there can be manydifferent types of metadata in the search index. Thus, the searchqueries are not restricted to “text” based search terms.

In the context of this disclosure, the phrase “search term” represents atechnical concept or interpretation. For example, a search term in thecontext of this disclosure can be a word, a string, or any combinationof the following:

-   -   phrases    -   numbers    -   strings    -   logical operations (e.g., AND, OR, NOT, etc.)    -   ordering or operations (e.g., using parenthesis)    -   relationships (e.g., greater than, less than, not equal to,        etc.)    -   similarities based on thesaurus, stemming, sounds-like, etc.    -   wildcards and pattern matching

To this end, a search term can also refer to any term that is used in aquery and that has been modified or generated by any commonly usedtechniques.

For context, a search term could be a word “John” or a more complexexpression like: (>“bob” or !=(“123” or a*)) and (sounds-like “smith” orthesaurus “doctor” or “medical doctor” or stem “medical”).

The embodiment of FIG. 3 is provided by way of example. Search engine122 may include any number of other modules or configurations to updateand search an index. For example, search modules 240 and indexingengines 220 may be a single module. Search engine 122 may be a portionof a larger program, such as a document management program, may be aseparate program or may be implemented according to any suitableprogramming architecture. In one embodiment, the processes of searchengine 122 may be distributed across multiple computer systems.Furthermore, while in FIG. 3, index 124 is illustrated as a singleindex, index 124 may comprise a set of smaller indexes. For example, aseparate index can be used by each indexing engine.

FIG. 4 depicts a diagrammatic representation of one embodiment ofregions or fields for a portion of index 124. Index 124 includes a listof some or all objects 107 in repository 105 (FIG. 1), each identifiedby a unique identifier 301 (also referred to as object ID). Index 124further includes a set of metadata regions 300 (also referred to asmetadata fields). A metadata field 300 may include more than one entryfor an object. The metadata fields can each have associated values invalue storage locations within storage unit 118. In other embodiments,the values may be discarded. The index may include a list of dictionaryterms contained in the metadata values of the object and pointers towhere the metadata values corresponding to the field are stored. Index124 may also include other regions for an object, such as a text region302. Text region 302 may, example, include a list of terms in the textof an object. Index 124 may include some or all of the content of anobject.

While shown as a single index, index 124 may be partitioned. In indexpartitioning, in one embodiment, the index of objects in repository 105may be split into multiple indexes such that some objects are listed inone index partition, while other objects are listed in the other indexpartitions. As described below with reference to FIGS. 5 and 6, a‘partition’ comprises a portion or fragment of index 124 and isassociated with indexing engine 220 and search module 240. Note it ispossible to copy a partition and associate a different index engine andsearch engine with this partition. Index partitioning may also reduceresource usage and search time. Furthermore, separate indexes may bemaintained for metadata and text and/or different metadata regions orfields. Index 124 can be stored according to any suitable storagescheme. Example storage schemes may include “Memory Storage,” “DiskStorage” and “Retrieval Storage”:

Memory Storage: in this storage scheme, all the elements of the indexare kept in memory. This provides the fastest operation when searchresults must be retrieved, since the memory storage mode minimizes diskactivity. Conversely, memory storage consumes the most memory inpartitions. Text regions which are frequently searched and retrieved fordisplay should typically be held in memory.

Disk Storage: in this storage scheme, the dictionary and index are keptin memory, but the value storage is located on disk within a Checkpointfile. Keyword searches are still fast, but search queries which need toexamine the original data, such as phrase searches, are generallyslower. Retrieving values from disk for display is also slower. Forregions which are not commonly searched and displayed, disk storage is agood choice. Disk storage is also suitable as a storage mode for systemsutilizing solid state hardware.

Retrieval Storage: in this storage scheme, storage is optimized for textmetadata regions which need to be retrieved and displayed, but do notneed to be searchable. As an example, text values may be stored on diskwithin the Checkpoint file, and there is no dictionary or index at all.This storage scheme can be used, for example, for regions such as HotPhrases and Summaries.

FIG. 5 depicts a diagrammatic representation of one embodiment of anindexing engine 220 to maintain a partition of index 124. In thisembodiment, indexing engine 220 can include an indexing controller 305,a metadata update component 310, and a text update component 315. Inthis embodiment, index 124 is maintained as a separate metadata index312, which contains metadata for objects in repository 105, and textindex 314, which contains content text from objects in repository 105,with a known relationship between the text and metadata components foreach object in the index.

Indexing controller 305 receives indexing requests (e.g., from adistributor, another application or other source). An indexing requestreceived at the indexing controller 305 may include an instruction toadd an object, delete an object, modify an object or replace an objectin index 124. Such an indexing request may also include the informationto be added or changed, such as the full text content to be indexed andthe associated metadata for the object. An indexing request may alsocontain derived metadata.

The text (derived text or full text content) of an indexing request maybe a text file. It could be data exported from a database or otherinformation system. Commonly, the text is the human-readable informationwithin a document composed on a computer. In this scenario, a file suchas a Microsoft Word document would be analyzed by a filtering step toextract the text, which can be stripped of unnecessary information suchas fonts, styles, or page layout information.

The metadata portion of an indexing request may specifically be providedby an application providing the indexing request. This might be datasuch as an identifier for the object, the date or time it was firstadded to the system, or the identity of the user who manages the object.

A portion of the metadata can be derived metadata. Derived metadata caninclude metadata inferred from the text content. For example, the filteror code that extracts the text from a PowerPoint presentation might alsocreate metadata about the presentation. In this example, the generatedmetadata may include the number of slides in the presentation, the titleof the file, the name of the presentation author stored in thePowerPoint file, or the size of paper the presentation was designed toprint on. More complex examples of derived metadata might includestatistical analysis to generate a list of keyword or key concepts inthe document, determining the subject person or company of the text,sentiment analysis (the positive or negative tone of the text), oridentification of the language in which the text is written. Derivedmetadata may also include data inferred from processing an object. Forexample, in processing a PowerPoint presentation, derived metadata mayinclude a timestamp of the time the PowerPoint was processed or thelocation where the PowerPoint presentation was processed.

An indexing engine can receive an indexing request 510 from anapplication, distributor or other source. Indexing request 510 specifiesan operation to be taken on index 124 for an object and any metadata ortext for that action. For context, an application that generates anindexing request may be a corporate document management system, a website with a search capability such as an online store, or a desktopsearch program for email.

According to one embodiment, for example, an indexing request can takethe form of an indexing object that includes a unique identification foran object, an operation, the metadata or text regions affected and themetadata and/or text for the index. By way of example, but notlimitation, indexing operations may include adding, replacing, modifyingand deleting information in the index, or combinations thereof. Thefollowing provides some exemplary operations that may be included inindexing requests.

AddOrReplace: this operation can be used to create new objects in theindex. According to one embodiment, if the object does not exist, itwill be created, but if an entry with the same object identificationexists, then it will be completely replaced with the new data,equivalent to a delete and add.

AddOrReplace: this function may distinguish between content andmetadata. If an object already exists, and metadata only is provided,the existing full text content is retained.

AddOrModify: this operation will update an existing object, or create anew object if it does not already exist. When modifying an existingobject, only the provided content and metadata is updated. Any metadataregions that already exist which are not specified in the AddOrModifycommand will be left intact.

Delete: this operation will remove an object from the index, includingboth the metadata and the content.

Indexing controller 305, according to one embodiment, is a componentwhich interprets the indexing request to determine how it should beprocessed. Indexing controller 305 can identify whether a text indexingcommand exists, and, if so, send the command with the necessaryparameters to the text update component 315. Indexing controller 305 canlikewise determine if any metadata indexing operations are required, andif so, send the command with necessary parameters to the metadata updatecomponent 310.

Text update component 315 is responsible for processing requests toindex full text content. This may include tasks such as maintaining adictionary of search terms, maintaining the internal search datastructures, and updating the storage representation of the text portionof the search index in memory or on disk as appropriate. Text updatecomponent 315 may support instructions such as Add an Object, Replace anObject, or Delete an Object.

Metadata update component 310 is responsible for processing requests toindex metadata 312 associated with an object in index 124. This mayinclude building and maintaining dictionaries of search terms,maintaining internal search data structures, and updating therepresentation of the metadata portion of the search index in memory oron disk as appropriate. Metadata update component 310 may supportinstructions such as Add an Object, Replace an Object, or Delete anObject.

The embodiment of FIG. 5 is provided by way of example. Indexing engine220 may include any number of other modules to update and search anindex. Indexing engine 220 may be a portion of a larger program, such asa document management program, may be a separate program or may beimplemented according any suitable programming architecture. In oneembodiment, the processes of indexing engine 220 may be distributedacross multiple computer systems.

As discussed above, an index may be partitioned. FIG. 6 depicts adiagrammatic representation of one embodiment of system 600 for managingpartitions. In the embodiment of FIG. 6, index 124 is divided into “n”partitions 400, with each partition including a metadata index and atext index. As illustrated in FIG. 5, in one embodiment, each partitioncan have its own indexing engine 220 and search module 240.

A partition manager can be configured to manage these partitions.Partition manager 505 is a component of a search system that acceptsindexing requests, and determines which partition should service anindexing request, and provides the indexing request to the appropriateindexing engine 220. In one embodiment, partition manager 505 can be alogical function of a search engine in the search system which, in turn,can be part of a document management system. In one embodiment,partition manager 505 can be a logical function of distributor 210 shownin FIG. 3. An indexing engine (e.g., indexing engine 220 shown in FIG.3) for a partition performs the actual indexing operations of adding,deleting or modifying data in the partition. Likewise, partition manager505 may be able to federate search queries to multiple search engines240 associated with multiple partitions and combine the results. In oneembodiment, this function of partition manager 505 may be incorporatedin a federator (e.g., federator 245 shown in FIG. 3).

A search system can be configured so that each partition can have a setcapacity (number of objects, memory, disk space or other measure ofcapacity). Additionally, thresholds can be set for each partition. Theamount of information in the partition relative to the thresholds can beused to determine which operations are performed on the partition. Anexample of this methodology is described below with reference to FIGS.7-8. FIG. 7 depicts one embodiment of partition 400 to which threethresholds are assigned: first threshold 405, second threshold 410 andthird threshold 415. As flow 800 of FIG. 8 illustrates, the behavior ofthe search system can change depending upon the amount of information ina partition relative to various thresholds. These thresholds may be thesame or different from partition to partition. Each partition 400 inindex 124 can have its own set of thresholds.

Assume there are several partitions, and the initial state is that eachis empty. For the purpose of discussion and not of limitation, thecapacity of the partition is described below using percentages. Inpractice, the capacity utilization of a partition may be measured usingone or a combination of values, such as memory, disk space, the numberof objects contained within a partition, or other suitable measures.

In the empty state, the partition is capable of accepting new objects.That is, the indexing engine is able to add new objects to thepartition. The partition therefore is operating in an “Add” mode, whichis represented in FIG. 7 as range 420. The indexing engine is alsocapable of servicing indexing requests to delete or modify objectsalready within the partition. Thus, the capacity utilization ofpartition 400 may increase or decrease as operations are performed toadd objects to the partition, delete objects from the partition, ormodify objects in the partition. The partition can continue to acceptnew objects while in the “Add” mode until the capacity utilizationreaches first threshold 405. In the example of FIG. 8, this is referredto as “Add” mode (810).

Once the Update Threshold is exceeded and the partition is in capacityutilization range 425, indexing engine 220 will change its mode ofoperation from “Add” to “Update” (812). In the Update mode, the indexingengine for the partition will refuse to accept indexing requests to addnew objects. Specifically, indexing engine 220 will communicate withpartition manager 505 to convey this status and partition manager 505will direct any indexing requests to add objects to other partitions.

While in the Update mode the indexing engine can continue to acceptrequests to delete existing objects, which will reduce the capacityutilization. The indexing engine will also accept requests to change ormodify existing objects, which may increase or decrease the capacityutilization depending upon the nature of the change. If the capacityutilization of the partition drops below the Update Threshold, thepartition will change its behavior back to the Add mode (814), and canbegin accepting new objects again (810). Referring to FIG. 7, when theamount of information in the partition decreases from capacityutilization range 425 to capacity utilization range 420 (below firstthreshold 405), may cause indexing engine 220 as well as distributor 210to change behavior. Specifically, indexing engine 220 will change itsmode of operation from “Update” to “Add” and distributor 210 (wherepartition manager 505 resides in this example) will again directindexing requests to add objects to partition 400.

While the capacity utilization of the partition is in the Update mode,as indexing requests to modify objects are processed, the capacityutilization may increase. Eventually, the capacity utilization may reachan Enter Rebalancing Threshold, which is referred to as second threshold410 in FIG. 7. At this point, the partition is now over the safecapacity for adding new objects or modifying existing objects. Thepartition enters a “Rebalancing” mode of operation (816) and intocapacity utilization range 430. As shown in FIG. 7, capacity utilizationrange 430 is defined by third threshold 415, which is normally lowerthan second threshold 410. Third threshold 415 may be referred to as anExit Rebalancing Threshold. Once in the Rebalancing mode, the partitionwill remain in the Rebalancing mode until the capacity utilization dropsbelow the Exit Rebalancing Threshold. Thus, once partition 400 entersinto capacity utilization range 430, indexing engine 220 will remain inthe Rebalancing mode until the capacity utilization drops below thirdthreshold 415. In this embodiment, the fact that the capacityutilization may drop below second threshold 410 but not third threshold415 will not cause indexing engine 220 to change from the Rebalancingmode to the Update mode. In another embodiment, when the capacityutilization drops below second threshold 410, indexing engine 220 willchange from the Rebalancing mode to the Update mode. In this embodiment,third threshold 415 is not needed and second threshold 410 can server asa single trigger point by which indexing engine 220 enters or exits theRebalancing mode. In one embodiment, having third threshold 415 beinglower than second threshold 410 may provide better efficiency, asdescribed below.

While in the Rebalancing mode, the partition will not accept new objectsto index. In one embodiment, if an indexing request arrives to modify anexisting object in the partition, partition manager 505 may extract theobject to be modified and transform it to an indexing request foranother partition. In this case, partition manager 505 can select whichtarget partition should be used and forward the indexing request thatpartition manager 505 had prepared to an appropriate indexing engine220. Partition manager 505 may then cause the object to be deleted fromthe partition that is in the Rebalancing mode. In this way, the capacityutilization can be reduced any time an object is deleted from thepartition, or an object is modified since modification causes the objectto be moved from the partition that is in the Rebalancing mode toanother partition that is not in the Rebalancing mode.

In one embodiment, partition manager 505 can wait for delete and modifyoperations to reduce the capacity utilization while a partition is inthe Rebalancing mode. An alternative implementation would allow a moreaggressive Rebalancing operation in which objects are moved proactivelyto other partitions to reduce the capacity utilization below theRebalancing Threshold, instead of waiting for indexing requests todelete and/or modify specific objects. When the capacity utilizationdrops below the Exit Rebalancing Threshold, the system will switch themode of operation from the Rebalancing mode to the Update mode for thepartition (818).

In any application that incorporates a search system such as a documentmanagement system, having the ability to reserve a capacity utilizationrange for updates is a material advantage. Without an Update mode, thepartitions will add information until they are full. Once full, thesystem must perform rebalancing every time an object must be modified ina way that increases the capacity utilization. This can imposesignificant performance degradation on the indexing system, since movingobjects to other partitions may be computationally expensive. By havinga range of capacity utilization reserved for updates, an authorized usersuch as a system operator or administrator can estimate the space thatwill be needed for updates and therefore eliminate or reduce the amountof rebalancing that will be required.

Having an Update mode with a Rebalancing mode also provide advantages.Without these modes, objects are moved each time an upper limit isreached. This can result in thrashing of the index. For example, anobject is added and that pushes the size past the upper limit. The nextmodification moves an object to another partition, allowing another addoperation to occur, with the cycle repeating. By introducing hysteresiswith the Rebalancing mode, the rebalancing process can be optimized andthe partition manager can make better decisions about allocatingindexing requests among partitions.

According to one embodiment, thresholds 405, 410 and 415 are adjustable.This ability to configure the thresholds allows system users to optimizethe behavior of the capacity management system for their situation. Forexample, if the search system is part of a long-term archival product,then changes to objects are infrequent, and the estimated capacityreserved for updates can be small. If the search system is part of acustomer management system where customer information is changedfrequently, then reserving more capacity for updates to objects isappropriate. Moreover, the number of thresholds and level of capacity ofutilization of each threshold can vary between partitions.

Furthermore, partitions may be assigned additional thresholds. Forexample, while the same threshold is used to enter and exit the updatemode of operation in FIG. 7, the partition can be assigned a differententer update threshold and exit update threshold.

Partition manager 505 can create new partitions as needed. By way ofexample, but not of limitation, partition manager 505 can create a newpartition when all the other partitions are in an update or rebalancingmode.

In one embodiment, thresholds 405, 410 and 415 can be percentagethresholds. For example, a threshold of 85% capacity utilization may beused for the Update threshold. In this case, a majority of availablememory is dedicated to building and updating the index. When thecapacity utilization meets or exceeds the 85% threshold, the index isdeemed to be full. The system enters into the Update mode and newobjects are added to other partitions that are not full. Capacityutilization range 425, which is defined by the Update Threshold and theEnter Rebalancing Threshold, essentially represents space reserved forupdates and changes to existing objects after the index partition isdeemed “full”. Some considerations for adjusting this threshold settingmay include:

-   -   If the system has applications or custom modules known to add        significant new metadata to existing objects, more space should        be allowed for updates.    -   Archival systems which rarely modify metadata can reduce the        space reserved for updates.

A threshold of 100% capacity utilization may be used to mark an entrypoint for the Rebalancing mode. Note that there can be memory reservedbeyond the 100% capacity utilization threshold for program use and othertemporary data needs. As an example, there can be 300 MB reservedworking space in the memory that is not part of the capacity utilizationfor the partition. In this case, the 100% capacity utilization thresholdcan serve as an Enter Rebalancing Threshold and a 97% capacityutilization threshold can serve as an Exit Rebalancing Threshold. Theindex partition enters the Rebalancing mode when the Enter RebalancingThreshold is met or exceeded. As described above, further updates in theRebalancing mode will cause objects to be moved to other partitions.When the size of the partition in the Rebalancing mode drops below theExit Rebalancing Threshold, the partition will again accept updates toexisting object as the partition re-enters into the Update mode.

Users or an automated system can periodically review the percent fullstatus of partitions, and adjust the partition percent full thresholdsbased upon actual usage patterns. Again, the capacity utilization of apartition can be measured in various ways and is not limited by the useof percentage.

Thus, embodiments of a search system can maintain a search index ofmetadata and text for objects in a repository, repositories ordistributed across a network. The search index can be divided intopartitions with a partition assigned a first capacity utilizationthreshold and a second capacity utilization threshold. If the capacityutilization of the partition is below the first threshold, the searchsystem can add, update and delete information in the partition. If thecapacity utilization of the partition is above the first threshold, thesearch system can update and delete information in the partition, butcannot add information for new objects to the partition. If the capacityutilization of the partition is above the second threshold, the searchsystem can enter a rebalancing mode in which it seeks to rebalancecapacity utilization between partitions. Other alternative embodimentsare also possible.

The invention disclosed here describes a system where the partitionmaintenance is not visible or otherwise transparent to the end user.Specifically, a user query issued during any stage of partitionmaintenance is answered using a consistent and complete view of allobjects in the repository regardless of the current partition in which agiven object resides. The intelligent partition management describedabove can therefore occur ‘online’ or ‘live’. In this context, ‘online’or ‘live’ means that there is no interruption in the search service fromthe end user's perspective. This is an advantage over ‘offline’ systemswhere the search service(s) must be temporarily disabled (taken offline)to allow maintenance of the partitions. In such an ‘offline’ system, auser may not be able to issue queries during maintenance as such querieswould produce incomplete search results.

Although the invention has been described with respect to specificembodiments thereof, these embodiments are merely illustrative, and notrestrictive of the invention. The description herein of illustratedembodiments of the invention, including the description in the Abstractand Summary, is not intended to be exhaustive or to limit the inventionto the precise forms disclosed herein (and in particular, the inclusionof any particular embodiment, feature or function within the Abstract orSummary is not intended to limit the scope of the invention to suchembodiment, feature or function). Rather, the description is intended todescribe illustrative embodiments, features and functions in order toprovide a person of ordinary skill in the art context to understand theinvention without limiting the invention to any particularly describedembodiment, feature or function, including any such embodiment featureor function described in the Abstract or Summary. While specificembodiments of, and examples for, the invention are described herein forillustrative purposes only, various equivalent modifications arepossible within the spirit and scope of the invention, as those skilledin the relevant art will recognize and appreciate. As indicated, thesemodifications may be made to the invention in light of the foregoingdescription of illustrated embodiments of the invention and are to beincluded within the spirit and scope of the invention. Thus, while theinvention has been described herein with reference to particularembodiments thereof, a latitude of modification, various changes andsubstitutions are intended in the foregoing disclosures, and it will beappreciated that in some instances some features of embodiments of theinvention will be employed without a corresponding use of other featureswithout departing from the scope and spirit of the invention as setforth. Therefore, many modifications may be made to adapt a particularsituation or material to the essential scope and spirit of theinvention.

Reference throughout this specification to “one embodiment”, “anembodiment”, or “a specific embodiment” or similar terminology meansthat a particular feature, structure, or characteristic described inconnection with the embodiment is included in at least one embodimentand may not necessarily be present in all embodiments. Thus, respectiveappearances of the phrases “in one embodiment”, “in an embodiment”, or“in a specific embodiment” or similar terminology in various placesthroughout this specification are not necessarily referring to the sameembodiment. Furthermore, the particular features, structures, orcharacteristics of any particular embodiment may be combined in anysuitable manner with one or more other embodiments. It is to beunderstood that other variations and modifications of the embodimentsdescribed and illustrated herein are possible in light of the teachingsherein and are to be considered as part of the spirit and scope of theinvention.

In the description herein, numerous specific details are provided, suchas examples of components and/or methods, to provide a thoroughunderstanding of embodiments of the invention. One skilled in therelevant art will recognize, however, that an embodiment may be able tobe practiced without one or more of the specific details, or with otherapparatus, systems, assemblies, methods, components, materials, parts,and/or the like. In other instances, well-known structures, components,systems, materials, or operations are not specifically shown ordescribed in detail to avoid obscuring aspects of embodiments of theinvention. While the invention may be illustrated by using a particularembodiment, this is not and does not limit the invention to anyparticular embodiment and a person of ordinary skill in the art willrecognize that additional embodiments are readily understandable and area part of this invention.

Embodiments discussed herein can be implemented in a computercommunicatively coupled to a network (for example, the Internet),another computer, or in a standalone computer. As is known to thoseskilled in the art, a suitable computer can include a central processingunit (“CPU”), at least one read-only memory (“ROM”), at least one randomaccess memory (“RAM”), at least one hard drive (“HD”), and one or moreinput/output (“I/O”) device(s). The I/O devices can include a keyboard,monitor, printer, electronic pointing device (for example, mouse,trackball, stylus, touch pad, etc.), or the like.

ROM, RAM, and HD are computer memories for storing computer-executableinstructions executable by the CPU or capable of being compiled orinterpreted to be executable by the CPU. Suitable computer-executableinstructions may reside on a computer readable medium (e.g., ROM, RAM,and/or HD), hardware circuitry or the like, or any combination thereof.Within this disclosure, the term “computer readable medium” is notlimited to ROM, RAM, and HD and can include any type of data storagemedium that can be read by a processor. For example, a computer-readablemedium may refer to a data cartridge, a data backup magnetic tape, afloppy diskette, a flash memory drive, an optical data storage drive, aCD-ROM, ROM, RAM, HD, or the like. The processes described herein may beimplemented in suitable computer-executable instructions that may resideon a computer readable medium (for example, a disk, CD-ROM, a memory,etc.). Alternatively, the computer-executable instructions may be storedas software code components on a direct access storage device array,magnetic tape, floppy diskette, optical storage device, or otherappropriate computer-readable medium or storage device.

Any suitable programming language can be used to implement the routines,methods or programs of embodiments of the invention described herein,including C, C++, Java, JavaScript, HTML, or any other programming orscripting code, etc. Other software/hardware/network architectures maybe used. For example, the functions of the disclosed embodiments may beimplemented on one computer or shared/distributed among two or morecomputers in or across a network. Communications between computersimplementing embodiments can be accomplished using any electronic,optical, radio frequency signals, or other suitable methods and tools ofcommunication in compliance with known network protocols.

Different programming techniques can be employed such as procedural orobject oriented. Any particular routine can execute on a single computerprocessing device or multiple computer processing devices, a singlecomputer processor or multiple computer processors. Data may be storedin a single storage medium or distributed through multiple storagemediums, and may reside in a single database or multiple databases (orother data storage techniques). Although the steps, operations, orcomputations may be presented in a specific order, this order may bechanged in different embodiments. In some embodiments, to the extentmultiple steps are shown as sequential in this specification, somecombination of such steps in alternative embodiments may be performed atthe same time. The sequence of operations described herein can beinterrupted, suspended, or otherwise controlled by another process, suchas an operating system, kernel, etc. The routines can operate in anoperating system environment or as stand-alone routines. Functions,routines, methods, steps and operations described herein can beperformed in hardware, software, firmware or any combination thereof.

Embodiments described herein can be implemented in the form of controllogic in software or hardware or a combination of both. The controllogic may be stored in an information storage medium, such as acomputer-readable medium, as a plurality of instructions adapted todirect an information processing device to perform a set of stepsdisclosed in the various embodiments. Based on the disclosure andteachings provided herein, a person of ordinary skill in the art willappreciate other ways and/or methods to implement the invention.

It is also within the spirit and scope of the invention to implement insoftware programming or code an of the steps, operations, methods,routines or portions thereof described herein, where such softwareprogramming or code can be stored in a computer-readable medium and canbe operated on by a processor to permit a computer to perform any of thesteps, operations, methods, routines or portions thereof describedherein. The invention may be implemented by using software programmingor code in one or more general purpose digital computers, by usingapplication specific integrated circuits, programmable logic devices,field programmable gate arrays, optical, chemical, biological, quantumor nanoengineered systems, components and mechanisms may be used. Ingeneral, the functions of the invention can be achieved by any means asis known in the art. For example, distributed, or networked systems,components and circuits can be used. In another example, communicationor transfer (or otherwise moving from one place to another) of data maybe wired, wireless, or by any other means.

A “computer-readable medium” may be any medium that can contain, store,communicate, propagate, or transport the program for use by or inconnection with the instruction execution system, apparatus, system ordevice. The computer readable medium can be, by way of example only butnot by limitation, an electronic, magnetic, optical, electromagnetic,infrared, or semiconductor system, apparatus, system, device,propagation medium, or computer memory. Such computer-readable mediumshall generally be machine readable and include software programming orcode that can be human readable (e.g., source code) or machine readable(e.g., object code). Examples of non-transitory computer-readable mediacan include random access memories, read-only memories, hard drives,data cartridges, magnetic tapes, floppy diskettes, flash memory drives,optical data storage devices, compact-disc read-only memories, and otherappropriate computer memories and data storage devices. In anillustrative embodiment, some or all of the software components mayreside on a single server computer or on any combination of separateserver computers. As one skilled in the art can appreciate, a computerprogram product implementing an embodiment disclosed herein may compriseone or more non-transitory computer readable media storing computerinstructions translatable by one or more processors in a computingenvironment.

A “processor” includes any, hardware system, mechanism or component thatprocesses data, signals or other information. A processor can include asystem with a general-purpose central processing unit, multipleprocessing units, dedicated circuitry for achieving functionality, orother systems. Processing need not be limited to a geographic location,or have temporal limitations. For example, a processor can perform itsfunctions in “real-time,” “offline,” in a “batch mode,” etc. Portions ofprocessing can be performed at different times and at differentlocations, by different (or the same) processing systems.

It will also be appreciated that one or more of the elements depicted inthe drawings/figures can also be implemented in a more separated orintegrated manner, or even removed or rendered as inoperable in certaincases, as is useful in accordance with a particular application.Additionally, any signal arrows in the drawings/figures should beconsidered only as exemplary, and not limiting, unless otherwisespecifically noted.

As used herein, the terms “comprises,” “comprising,” “includes,”“including,” “has,” “having,” or any other variation thereof, areintended to cover a non-exclusive inclusion. For example, a process,product, article, or apparatus that comprises a list of elements is notnecessarily limited only those elements but may include other elementsnot expressly listed or inherent to such process, product, article, orapparatus.

Furthermore, the term “or” as used herein is generally intended to mean“and/or” unless otherwise indicated. For example, a condition A or B issatisfied by any one of the following: A is true (or present) and B isfalse (or not present), A is false (or not present) and B is true (orpresent), and both A and B are true (or present). As used herein,including the claims that follow, a term preceded by “a” or “an” (and“the” when antecedent basis is “a” or “an”) includes both singular andplural of such term, unless clearly indicated within the claim otherwise(i.e., that the reference “a” or “an” clearly indicates only thesingular or only the plural). Also, as used in the description hereinand throughout the claims that follow, the meaning of “in” includes “in”and “on” unless the context clearly dictates otherwise. The scope of thepresent disclosure should be determined by the following claims andtheir legal equivalents.

What is claimed is:
 1. A computerized search system, comprising: asearch engine communicatively connected to a client device over aphysical connection; a processor; and a storage unit coupled to theprocessor and storing a search index and instructions, wherein theinstructions when translated by the processor cause the search engine toperform: when a capacity utilization of a partition in the search indexis under a first threshold: allowing any object to be added to thepartition; and allowing any existing object in the partition to beupdated or deleted; when the capacity utilization of the partition isabove the first threshold: disallowing any object to be added to thepartition; and allowing any existing object in the partition to beupdated or deleted; and when the capacity utilization of the partitionis above a second threshold: disallowing any object to be added to thepartition; allowing any existing object in the partition to be deleted;and moving any existing object in the partition that is subject to anupdate to another partition in the search index along with an indexingrequest.
 2. The system of claim 1, wherein the indexing request isgenerated by a partition manager based on the update associated with theexisting object.
 3. The system of claim 2, wherein the moving isautomatically and proactively performed by the partition manager whenthe capacity utilization of the partition is above the second threshold.4. The system of claim 2, wherein the moving is performed by thepartition manager in response to another indexing request received atthe partition manager.
 5. The system of claim 1, wherein theinstructions when translated by the processor further cause the searchengine to perform: changing from an Add mode to an Update mode when thecapacity utilization of the partition meets or exceeds the firstthreshold; and changing from the Update mode to a Rebalancing mode whenthe capacity utilization of the partition meets or exceeds the secondthreshold.
 6. The system of claim 1, wherein the instructions whentranslated by the processor further cause the search engine to perform:changing from an Update mode to an Add mode when the capacityutilization of the partition drops below the first threshold.
 7. Thesystem of claim 1, wherein the instructions when translated by theprocessor further cause the search engine to perform: changing from aRebalancing mode to an Update mode when the capacity utilization of thepartition drops below a third threshold.
 8. A computer program productcomprising at least one non-transitory computer readable medium storinginstructions translatable by a processor, wherein the instructions whentranslated by the processor cause a search engine to perform: when acapacity utilization of a partition in a search index is under a firstthreshold: allowing any object to be added to the partition; andallowing any existing object in the partition to be updated or deleted;when the capacity utilization of the partition is above the firstthreshold: disallowing any object to be added to the partition; andallowing any existing object in the partition to be updated or deleted;and when the capacity utilization of the partition is above a secondthreshold: disallowing any object to be added to the partition; allowingany existing object in the partition to be deleted; and moving anyexisting object in the partition that is subject to an update to anotherpartition in the search index along with an indexing request, the searchindex being connected to the search engine, the search engine beingcommunicatively connected to a client device over a physical connection.9. The computer program product of claim 8, wherein the indexing requestis generated by a partition manager based on the update associated withthe existing object.
 10. The computer program product of claim 9,wherein the moving is automatically and proactively performed by thepartition manager when the capacity utilization of the partition isabove the second threshold.
 11. The computer program product of claim 9,wherein the moving is performed by the partition manager in response toanother indexing request received at the partition manager.
 12. Thecomputer program product of claim 8, wherein the instructions whentranslated by the processor further cause the search engine to perform:changing from an Add mode to an Update mode when the capacityutilization of the partition meets or exceeds the first threshold; andchanging from the Update mode to a Rebalancing mode when the capacityutilization of the partition meets or exceeds the second threshold. 13.The computer program product of claim 8, wherein the instructions whentranslated by the processor further cause the search engine to perform:changing from an Update mode to an Add mode when the capacityutilization of the partition drops below the first threshold.
 14. Thecomputer program product of claim 8, wherein the instructions whentranslated by the processor further cause the search engine to perform:changing from a Rebalancing mode to an Update mode when the capacityutilization of the partition drops below a third threshold.
 15. A methodfor managing partitions in a computerized search system, the methodperformed by a search engine embodied on at least one non-transitorycomputer readable medium including instructions translable by aprocessor, the method comprising: when a capacity utilization of apartition in a search index is under a first threshold: allowing anyobject to be added to the partition; and allowing any existing object inthe partition to be updated or deleted; when the capacity utilization ofthe partition is above the first threshold: disallowing any object to beadded to the partition; and allowing any existing object in thepartition to be updated or deleted; and when the capacity utilization ofthe partition is above a second threshold: disallowing any object to beadded to the partition; allowing any existing object in the partition tobe deleted; and moving any existing object in the partition that issubject to an update to another partition in the search index along withan indexing request, the search index being connected to the searchengine, the search engine being communicatively connected to a clientdevice over a physical connection.
 16. The method of claim 15, whereinthe indexing request is generated by a partition manager based on theupdate associated with the existing object.
 17. The method of claim 16,wherein the moving is automatically and proactively performed by thepartition manager when the capacity utilization of the partition isabove the second threshold.
 18. The method of claim 16, wherein themoving is performed by the partition manager in response to anotherindexing request received at the partition manager.
 19. The method ofclaim 15, further comprising: changing from an Add mode to an Updatemode when the capacity utilization of the partition meets or exceeds thefirst threshold; and changing from the Update mode to a Rebalancing modewhen the capacity utilization of the partition meets or exceeds thesecond threshold.
 20. The method of claim 15, further comprising:changing from a Rebalancing mode to an Update mode when the capacityutilization of the partition drops below a third threshold.